﻿using Smobiler.Core;
using Smobiler.Core.Controls;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL;
using Model;

namespace FubiManger.UI
{
    partial class EditnameForm : Smobiler.Core.Controls.MobileForm
    {
        public EditnameForm() : base()
        {
            //This call is required by the SmobilerForm.
            InitializeComponent();
        }
        /// <summary>
        /// 商户ID
        /// </summary>
        public string merchantid { get; set; }
        ms_merchant merchant = new ms_merchant();
        private void panclose_Press(object sender, EventArgs e)
        {
            this.Close();
        }

        private void panpwd_Press(object sender, EventArgs e)
        {
           
            EditPwdForm frm = new EditPwdForm();
            frm.merchantid = merchantid;//商户ID
            frm.nickname = merchant.merchant_name;//商户名称
            frm.account = merchant.contact_person_tel;//负责人手机
            this.Form.Show(frm);
        }

        private void EditnameForm_Load(object sender, EventArgs e)
        {
            merchant = merchantDal.Querybyid(merchantid);

            txtaccount.Text = merchant.contact_person_tel;//商户手机号
        }
    }
}